module(
    name = "rules_python_gazelle_plugin",
    version = "1.1.0-rc0",
    compatibility_level = 1,
)

bazel_dep(name = "bazel_skylib", version = "1.6.1")
bazel_dep(name = "rules_python", version = "0.18.0")
bazel_dep(name = "rules_go", version = "0.41.0", repo_name = "io_bazel_rules_go")
bazel_dep(name = "gazelle", version = "0.33.0", repo_name = "bazel_gazelle")
bazel_dep(name = "rules_cc", version = "0.0.16")

local_path_override(
    module_name = "rules_python",
    path = "..",
)

go_deps = use_extension("@bazel_gazelle//:extensions.bzl", "go_deps")
go_deps.from_file(go_mod = "//:go.mod")
use_repo(
    go_deps,
    "com_github_bazelbuild_buildtools",
    "com_github_bmatcuk_doublestar_v4",
    "com_github_dougthor42_go_tree_sitter",
    "com_github_emirpasic_gods",
    "com_github_ghodss_yaml",
    "com_github_stretchr_testify",
    "in_gopkg_yaml_v2",
    "org_golang_x_sync",
)

python_stdlib_list = use_extension("//python:extensions.bzl", "python_stdlib_list")
use_repo(
    python_stdlib_list,
    "python_stdlib_list",
)

internal_dev_deps = use_extension(
    "//:internal_dev_deps.bzl",
    "internal_dev_deps_extension",
    dev_dependency = True,
)
use_repo(
    internal_dev_deps,
    "django-types",
    "pytest",
)
